import request from '@/utils/request'

export function getSpuAll() {
  return request({
    url: `/api/goods/spuinfo/getSpuAll`,
    method: 'get'
  })
}

export function saveDetail(list) {
  return request({
    url: `/api/goods/spuinfo/save`,
    method: 'post',
    data: list
  })
}

export function getList(query) {
  return request({
    url: `/api/goods/spuinfo/list`,
    method: 'post',
    data: query
  })
}

export function updatePublish(id) {
  return request({
    url: `/api/goods/spuinfo/up/${id}`,
    method: 'get'
  })
}
